// "page": 1,
// "size": 15,
// "total": 17
// Pagination

/// 分页
class Pagination {
  final int? page;
  final int? size;
  final int? total;

  Pagination({this.page, this.size, this.total});

  /// factory
  factory Pagination.fromJson(Map<String?, dynamic> json) {
    return Pagination(
      page: json["page"] ?? 0,
      size: json['size'] ?? 0,
      total: json['total'] ?? 0,
    );
  }
}

class PaginatedData<T> {
  T? data;
  Pagination? pagination;

  PaginatedData({this.data, this.pagination});
}
